﻿<%@ Page Title="Home Page" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false"
    CodeBehind="Default.aspx.vb" Inherits="Assignment_Project1._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <p>
        &nbsp;</p>
    <p>
       Please insert first number 
        <br />
        <asp:TextBox ID="TB_first" runat="server" Width="91px"></asp:TextBox>
        <asp:CompareValidator ID="CompareValidator1" runat="server" 
            ControlToValidate="TB_first" ErrorMessage="You must enter a number!" 
            Operator="DataTypeCheck" Type="Double"></asp:CompareValidator>
    </p>
    <p>
       Please insert second number</p>
    <p>
       &nbsp;<asp:TextBox ID="TB_second" runat="server" Width="88px"></asp:TextBox>
        <asp:CompareValidator ID="CompareValidator2" runat="server" 
            ControlToValidate="TB_second" Text="You must enter a number! " ErrorMessage="You must Enter a number!" 
            Operator="DataTypeCheck" Type="Double"></asp:CompareValidator>
    </p>
    <p>
        &nbsp;</p>
    <p>
        <asp:Button ID="Button1" runat="server" Text="Calculate" />
    </p>
    <p>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
            ControlToValidate="TB_first" 
            ErrorMessage="Please enter a number in text box 1!"></asp:RequiredFieldValidator>
    </p>
    <p>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
            ControlToValidate="TB_second" ErrorMessage="RequiredFieldValidator">Please enter a number in text box 2!</asp:RequiredFieldValidator>
    </p>
    <p>
        <asp:Label ID="LBL_sum" runat="server" Text="The Result Will Appear Here"></asp:Label>
    </p>
    <p>
        &nbsp;</p>
    <p>
    </p>
    </asp:Content>
